package hessian2_provider

import (
	"dubbo.apache.org/dubbo-go/v3/config"
	config2 "gitee.com/youbeiwuhuan/dubbo-go-proj/hessian2-example/hessian2-provider/config"
	"gitee.com/youbeiwuhuan/dubbo-go-proj/hessian2-example/hessian2-provider/provider"
)

// export DUBBO_GO_CONFIG_PATH=dubbogo.yml 运行前需要设置环境变量，指定配置文件位置
func main() {
	config.SetProviderService(&provider.UserProvider{}) // 注册服务提供者类，类名与配置文件中的 service 对应
	if err := config.Load(config.WithBytes(config2.DubbogoYml)); err != nil {
		panic(err)
	}
	select {}
}
